/* 任务添加样式 */
.add-task-container {
    padding: 0 32px 24px;
}

.add-task-input {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
}

.add-task-input i {
    color: #999;
}

.add-task-input input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
}

.task-actions {
    display: flex;
    gap: 8px;
}

/* 任务操作按钮样式 */
.task-action-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: none;
    cursor: pointer;
    color: #999;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.task-action-btn:hover {
    background: #f0f0f0;
    color: #666;
}

/* 优先级按钮颜色 */
.priority-btn.priority-high {
    color: #ff4757;
}

.priority-btn.priority-high:hover {
    background: #fff5f5;
    color: #ff4757;
}

.priority-btn.priority-medium {
    color: #ffa502;
}

.priority-btn.priority-medium:hover {
    background: #fffbf0;
    color: #ffa502;
}

.priority-btn.priority-low {
    color: #2ed573;
}

.priority-btn.priority-low:hover {
    background: #f0fff4;
    color: #2ed573;
}

/* 删除按钮样式 */
.delete-btn:hover {
    background: #fff5f5;
    color: #ff4757;
}

/* 任务列表样式 */
.tasks-container {
    flex: 1;
    padding: 0 32px;
    overflow-y: auto;
}

.task-item {
    display: flex;
    align-items: center;
    padding: 12px 5px;
    border-bottom: 1px solid #f0f0f0;
    gap: 12px;
    position: relative;
}

.task-item:hover {
    background: #f8f9fa;
}

.task-item.completed {
    opacity: 0.7;
    background: #f8f9fa;
}

.task-item.completed .task-text {
    text-decoration: line-through;
    color: #999;
}

.task-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    position: relative;
}

/* 隐藏原生input元素 */
.task-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
}

/* checkmark样式 */
.task-checkbox .checkmark {
    display: none;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.task-checkbox:hover {
    border-color: #4caf50;
}

.task-checkbox.completed {
    background: #4caf50;
    border-color: #4caf50;
    color: white;
}

.task-checkbox.completed .checkmark {
    display: block;
}

.task-checkbox.completed .checkmark::before {
    content: '✓';
}

/* 删除这个重复的伪元素样式 */
/* .task-checkbox.completed::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
} */

.task-content {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.task-main-content {
    display: flex;
    gap: 5px;
}

.task-content.completed {
    text-decoration: line-through;
    color: #999;
}

.task-time {
    font-size: 12px;
    color: #999;
}

.task-meta {
    display: flex;
}

.task-pomodoros {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #ff4757;
}

.task-pomodoros i {
    font-size: 10px;
}

.task-due-date {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
}

.task-due-date.today {
    background: #fff3cd;
    color: #856404;
}

.task-due-date.tomorrow {
    background: #d1ecf1;
    color: #0c5460;
}

.task-due-date.overdue {
    background: #f8d7da;
    color: #721c24;
}

.task-due-date.future {
    background: #d4edda;
    color: #155724;
}

.task-due-date i {
    font-size: 10px;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 16px;
}

.empty-title {
    font-size: 18px;
    color: #666;
    margin-bottom: 8px;
}

.empty-desc {
    font-size: 14px;
    color: #999;
    margin-bottom: 24px;
}

.empty-dropdown select {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fff;
    font-size: 12px;
    color: #666;
}

/* 番茄时钟开始按钮 */
.pomodoro-start-btn {
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    margin-right: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pomodoro-start-btn:hover {
    background: #ff5252;
    transform: scale(1.05);
}

.pomodoro-start-btn i {
    font-size: 14px;
}